//
//  TransFerViewController.m
//  TenThousand
//
//  Created by baixue on 16/7/30.
//  Copyright © 2016年 baixue. All rights reserved.
//

#import "TransFerViewController.h"
#import "CapitalSubsidiaryViewController.h"

@interface TransFerViewController ()

@end

@implementation TransFerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createLeft:[UIImage imageNamed:@"ZHSZicon_03"] leftClick:^{
        [self.navigationController popViewControllerAnimated:YES];
    } right:nil rightClick:nil];
    if (self.num == 2) {
        self.title = @"已转让";
    }else{
        self.title = @"承接债权";
    }
    
    _progectName.text = _prag;
    _addDate.text = _shijian;
    _rate.text = _lilv;
    _amont.text = _jine;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

//点击跳转投资协议
- (IBAction)investNegotiate:(id)sender {
    
    CapitalSubsidiaryViewController *capitalView = [[CapitalSubsidiaryViewController alloc] init];
    capitalView.Borrowid = self.Borrowid;
    capitalView.BorrowListId = self.BorrowListid;
    capitalView.num = 1;
    capitalView.Code = self.Code;
    capitalView.ProjectName = self.ProjectName;
    [capitalView setSelectIndex: 2];
    [self.navigationController pushViewController:capitalView animated:YES];
    
}

//点击跳转投资记录
- (IBAction)investRecord:(id)sender {
    
    CapitalSubsidiaryViewController *capitalView = [[CapitalSubsidiaryViewController alloc] init];
    capitalView.Borrowid = self.Borrowid;
    capitalView.BorrowListId = self.BorrowListid;
    capitalView.num = 1;
    capitalView.Code = self.Code;
    capitalView.ProjectName = self.ProjectName;
    [capitalView setSelectIndex: 1];
    [self.navigationController pushViewController:capitalView animated:YES];
    
}
//点击跳转项目详情
- (IBAction)details:(id)sender {
    
    CapitalSubsidiaryViewController *capitalView = [[CapitalSubsidiaryViewController alloc] init];
    capitalView.Borrowid = self.Borrowid;
    capitalView.BorrowListId = self.BorrowListid;
    capitalView.num = 1;
    capitalView.Code = self.Code;
    capitalView.ProjectName = self.ProjectName;
    [capitalView setSelectIndex: 0];
    [self.navigationController pushViewController:capitalView animated:YES];
}

@end
